package cn.com.shopec.erp.common.constant;

import java.util.UUID;

/**
 * 供应链平台常量
 * 
 * @author Administrator
 * 
 */
public class SZSCMConstant {
	
	/**
     *  操作异常
     */
    public static final String OPERATION_ERROR = "操作发生异常,请重试或联系管理员!";

    /**
     * 成功
     */
    public static final String SUCCESS = "success";

    /**
     * 失败
     */
    public static final String FAIL = "fail";

    /** 成功（整数值） */
    public static final int SUCCESS_INT = 1;

    /** 失败（整数值） */
    public static final int FAIL_INT = 0;

    /**
     * 删除标识：未删除
     */
    public static final Integer DELETE_FLAG_NO = 1;

    /**
     * 删除标识：已删除
     */
    public static final Integer DELETE_FLAG_YES = 0;
    
    /**
     * 抓取订单数据结果:无数据
     */
    public static final String NO_DATA ="noData";
    
    /**
     * WMS异常提示
     */
    public static final String WMS_FAIL ="wms_fail";
    
    /**
     * 供应商状态 0：正常
     */
    public static final String  STATE_LOCK = "0";
    /**
     * 供应商状态 1：失效
     */
    public static final String  STATE_UNLOCK = "1";

    /**
     * 默认抓取未结算
     */
    public static final Integer STATE_No = 0;

    /**
     * 数据已抓取
     */
    public static final Integer STATE_YES = 1;

    /**
     * 代销款结算状态(0:未结算，1已结算)
     */
    public static final Integer AGENCY_FUND_STATE = 1;

    /**
     * 物流结算状态(0:未结算，1已结算)
     */
    public static final Integer LOGISTICS_ACCOUNTS_STATE = 1;

    /**
     * 代销结算状态(0:未结算 1:已结算)
     */
    public static final Integer AGENCY_ACCOUNTS_STATE = 1;

    /**
     * 货品 1：购销类型 2：代销类型
     */
    public static final Integer AGENCY_TYPE_2 = 2;

    /**
     * 货品 1：购销类型 2：代销类型
     */
    public static final Integer AGENCY_TYPE_1 = 1;
    
    /**
     * 购销类型，预付
     */
    public static final String  PURCHASE_1 = "1";
    
    /**
     * 购销类型，货到7天
     */
    public static final String  PURCHASE_2 = "2";
    
    /**
     * 购销类型，货到15天
     */
    public static final String  PURCHASE_3 = "3";
    
    /**
     * 购销类型，货到30天
     */
    public static final String  PURCHASE_4 = "4";
    
    /**
     * 购销类型，月结15天
     */
    public static final String  PURCHASE_5 = "5";
    
    /**
     * 购销类型，月结30天
     */
    public static final String  PURCHASE_6 = "6";
    
    /**
     * 代销类型，月结15天
     */
    public static final String  AGENCY_1 = "1";
    
    /**
     * 代销类型，月结30天
     */
    public static final String  AGENCY_2 = "2";
    
    
    /** 请购单状态：0未审核 **/
    public static final int PR_UNTREATED = 0;
    /** 请购单状态：1审核未通过 **/
    public static final int PR_NO_PASS = 1;
    /** 请购单状态：2已作废 **/
    public static final int PR_NULLIFY = 2;
    /** 请购单状态：3已审核 **/
    public static final int PR_PASS = 3;
    /** 请购单状态：4已完成 **/
    public static final int PR_FINISH = 4;

    /** 是否质检：0否 **/
    public static final int PR_QC_NO = 0;

    /** 是否质检：1是 **/
    public static final int PR_QC_YES = 1;

    /** 采购单审核通过 **/
    public static final int PO_AUDIT_PASS = 1;

    /** 采购单审核不通过 **/
    public static final int PO_AUDIT_UNPASS = 2;

    /** 采购单状态:申请中 **/
    public static final int PO_STATUS_APPLYING = 1;

    /** 采购单状态:已审核完成 **/
    public static final int PO_STATUS_AUDITED = 2;

    /** 采购单状态:已作废 **/
    public static final int PO_STATUS_INVAILD = 3;

    /** 采购单审核点：采购主管 **/
    public static final int PO_AUDIT_POINT_PURCH_SU = 1;

    /** 采购单审核点：采购总监和运营主管 **/
    public static final int PO_AUDIT_POINT_PURCH_DR_OPERA_SU = 2;

    /** 采购单审核点：财务负责人 **/
    public static final int PO_AUDIT_POINT_FIN_PR = 3;

    /** 采购单审核点：总经理 **/
    public static final int PO_AUDIT_POINT_GEN_MNG = 4;

    /** 财务结算 周期类型 本期  **/
    public static final int FIN_CYTYPE_ON = 0;
    /** 财务结算 周期类型 本期之前 **/
    public static final int FIN_CYTYPE_TW = 1;
    /** 财务结算 周期类型 本期之前 退货 **/
    public static final int FIN_CYTYPE_TH = 2;
    
    /** 财务结算 周期类型 本期 退货 **/
    public static final int FIN_CYTYPE_FO = 3;

    /** 财务结算 审核状态 未审核 **/
    public static final int FIN_AU_STA_O = 0;
    /** 财务结算 审核状态 已审核 **/
    public static final int FIN_AU_STA_T = 1;
    /** 财务结算 审核状态 已拒绝 **/
    public static final int FIN_AU_THR_T = 2;

    /** 财务结算 订单状态 未结算 **/
    public static final int FIN_ST_STA_O = 0;
    /** 财务结算 订单状态已结算 **/
    public static final int FIN_ST_STA_T = 1;
    /** 财务结算 订单状态 已冻结 **/
    public static final int FIN_ST_STA_S = 2;
    /** 财务结算 订单状态部分结算 **/
    public static final int FIN_ST_STA_P = 3;



    /** WMS连接url **/
    public static final String URLSTR = "";
    /** WMS服务名 **/
    public static final String SERVER = "";
    /** WMS-appkey **/
    public static final String APPKEY = "";
    /** WMS-appscrect **/
    public static final String APPSECRET = "";

    /** 分类顶级分类编码 **/
    public static final String CAT_TOP_LEVEL = "0";
    /**
     * 验证码图片
     */
    public static final String LOGIN_VALIDATE_IMAGE = "login_validate_image";

    /** 商品未审核状态 **/
    public static final int COMMO_NOT_CHECK = 0;

    /** 商品已审核状态 **/
    public static final int COMMO_OVER_CHECK = 1;

    /**
     * 代销抓取(0:未抓取 1:已抓取)
     */
    public static final Integer AGENCY_ACCOUNT_STATE = 0;

    /**
     * 货品虚库实库（ 1：实库 2：虚库）
     */
    public static final Integer INVENTORYTYPE_2 = 2;

    /**
     * 货品虚库实库（ 1：实库 2：虚库）
     */
    public static final Integer INVENTORYTYPE_1 = 1;

    /**
     * 货品是代销还是购销(1:购销，2：代销)
     */
    public static final Integer SALATYPE = 1;

    /**
     * 删除标识：未取消
     */
    public static final Integer CLANS_FLAG_YES = 0;
    /**
     * 采购类型标识
     * 
     * */
    public static final Integer PURCHER_FLAG = 2;

    public static final Integer PURCHER_FLAG_NO = 1;

    /** 随机32位字符编码 **/
    public static String genUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    /** 订货单配送状态(0)：0、未预约；1、已预约未送货；2、在途；3、已完成送货 **/
    public static final Integer DISPATCHING_INITIAL = 0;
    /** 订货单配送状态(1)：0、未预约；1、已预约未送货；2、在途；3、已完成送货 **/
    public static final Integer DISPATCHING_SUBSCRIBE = 1;
    /** 订货单配送状态(2)：0、未预约；1、已预约未送货；2、在途；3、已完成送货 **/
    public static final Integer DISPATCHING_IN_TRANSIT = 2;
    /** 订货单配送状态(3)：0、未预约；1、已预约未送货；2、在途；3、已完成送货 **/
    public static final Integer DISPATCHING_FINISH = 3;

    /** 货品销售类型 代销 **/
    public static final Integer PRO_SALE_TYPE_DAI = 2;
    /** 货品销售类型 购销 **/
    public static final Integer PRO_SALE_TYPE_GOU = 1;

    /** 供应商结算方式 扣点 **/
    public static final String SUPP_ACCOUNT_TYPE_KOU = "1";
    /** 供应商结算方式 底价 **/
    public static final String SUPP_ACCOUNT_TYPE_DI = "2";
    /** 入库。。退货.. 货品类型 代销 **/
    public static final String PRODUCT_TYPE_DAI = "2";
    
    /** 入库。。退货 .. 货品类型 购销 **/
    public static final String PRODUCT_TYPE_GOU = "1";
    

    /** 订单支付方式 已支付 **/
    public static final Integer PAY_STATUS_ONE = 1;
    /** 订单支付方式 已付到至担保方 **/
    public static final Integer PAY_STATUS_TWO = 2;
    /** 订单支付方式 部分付款 **/
    public static final Integer PAY_STATUS_THR = 3;
    
    
    /** 采购类型 摄影归还 **/
    public static final Integer PUR_ORD_ONE = 2;
    /** 采购类型 产品采购 **/
    public static final Integer PUR_ORD_TWO = 3;
    /** 采购类型 样品入库 **/
    public static final Integer PUR_ORD_THR = 5;
    /** 采购类型 残品入库 **/
    public static final Integer PUR_ORD_FOU = 6;
    /** 采购类型 其它采购 **/
    public static final Integer PUR_ORD_FIV = 11;

    /** 可以退货 **/
    public static final Integer IS_RETURNED_GOODS = 1;

    /** 不能退货 **/
    public static final Integer NOT_RETURNED_INTEGER = 0;
    
    /** 订单有效期 1.退货单 **/
    public static final Integer VALIDITY_TYPE_1 = 1;
    /** 订单有效期 1.采购单 **/
    public static final Integer VALIDITY_TYPE_2 = 2;
    
    /**异动模块代码  采购入库记录**/
    public static final String InverChange_4="0003";
    /**异动模块代码  采购退货记录**/
    public static final String InverChange_9="0009";
    /**异动模块代码  配货单出库记录**/
    public static final String InverChange_7="0007";
    /**异动模块代码  销售退货记录**/
    public static final String InverChange_8="0008";
    /**货到付款**/
    public static final String PAY_WAY_HDFK="-1";
    
    public static final String BATCH_AU="au";
    public static final String BATCH_ST="st";
    /**结算单明细部分审核标志**/
    public static final String CAIWU_CHECK_FLAG="YES";
    /**未抓取**/
    public static final String NO_GRAD="0";
    /**已抓取**/
    public static final String YES_GRAD="1";
    
    /** 其它入库. **/
    public static final String MODULE_CODE_1 = "0001";
    /** 其他出库. **/
    public static final String MODULE_CODE_2 = "0002";
    /** 采购入库. **/
    public static final String MODULE_CODE_3 = "0003";
    /** 库内盘点. **/
    public static final String MODULE_CODE_4 = "0004";
    /** 调拨入库. **/
    public static final String MODULE_CODE_5 = "0005";
    /** 调拨出库. **/
    public static final String MODULE_CODE_6 = "0006";
    /** 配货单出库. **/
    public static final String MODULE_CODE_7 = "0007";
    /** 销售退货入库. **/
    public static final String MODULE_CODE_8 = "0008";
    /** 采购退货出库. **/
    public static final String MODULE_CODE_9 = "0009";
    /** 手动出库. **/
    public static final String MODULE_CODE_10 = "sd001";
    
    /** 采购退货出库. **/
    public static final String MODULE_SUPPNO_NAME= "海航通信";
    
    /**
     * 销售发货
     */
    public static final String SVTYPE_SEND="send";
    /**
     * 销售退货
     */
    public static final String SVTYPE_BACK="back";
    
    public static final Integer AUDIT_STATUE_0=0;
    
    /**
     * 待审核状态
     */
    public static final Integer LAST_AUDIT_RESULT = 0;
    /** （虚实库）仓库不匹配*/
	public static final String  WHARE_HOUSE = "wharefail";
    /**
     * 申请状态
     */
    public static final Integer POS_STATUS=1;
    
    /**
     * 待采购主管审核
     */
    public static final Integer CUR_AUDIT_POINT = 1;
    
    /**添加页面*/
    public static final int STOCK_ADD_VIEW = 1;
    /**验证页面*/
    public static final int STOCK_AUDIT_VIEW = 2;
    /**详细页面*/
    public static final int STOCK_INFO_VIEW = 3;
    /**采购单入库页面*/
    public static final int STOCK_PUR_IN_VIEW = 4;
    /**包裹单出库页面*/
    public static final int STOCK_PACKAGE_VIEW = 5;
    /**订单退换入库页面*/
    public static final int STOCK_BOOKBILL_VIEW = 6;
    /**采购单退货页面*/
    public static final int STOCK_PUR_OUT_VIEW = 7;
    /**次品退换货出库页面*/
    public static final int STOCK_DEFECT_OUT_VIEW = 8;
    /**次品换货入库页面*/
    public static final int STOCK_DEFECT_IN_VIEW = 9;
    /**包裹换货出库页面*/
    public static final int STOCK_PACKAGE_RETURN_VIEW = 10;
    /**次品换货入库页面*/
    public static final int STOCK_PUR_RETURN_VIEW = 11;
    /**调拨出库页面*/
    public static final int STOCK_TRANSFER_OUT_VIEW = 12;
    /**调拨出库页面*/
    public static final int STOCK_TRANSFER_IN_VIEW = 13;
    
    /**未出(入)库**/
	public static final int STOCK_STATE_NO = 0;
	/**已出(入)库 **/
	public static final int STOCK_STATE_YES = 1;
	
	/** 入库类型(货品采购入库) **/
	public static final int STOCKIN_TYPE_1 = 1;
	/** 入库类型(订单退换货入库) **/
	public static final int STOCKIN_TYPE_2 = 2;
	/** 入库类型(次品换货入库) **/
	public static final int STOCKIN_TYPE_3 = 3;
	/** 入库类型(采购退换货入库) **/
	public static final int STOCKIN_TYPE_4 = 4;
	/** 入库类型(调拨入库)**/
	public static final int STOCKIN_TYPE_5 = 5;
	/** 入库类型(其他入库 ) **/
	public static final int STOCKIN_TYPE_6 = 6;
	
	/** 出库类型(包裹单出库)**/
	public static final int STOCKOUT_TYPE_1 = -1;
	/** 出库类型(采购退货出库) **/
	public static final int STOCKOUT_TYPE_2 = -2;
	/** 出库类型(次品退货出库) **/
	public static final int STOCKOUT_TYPE_3 = -3;
	/** 出库类型(订单退货出库) **/
	public static final int STOCKOUT_TYPE_4 = -4;
	/** 出库类型(调拨出库) **/
	public static final int STOCKOUT_TYPE_5 = -5;
	
	/** 未导入条形码或关联采购单 **/
	public static final int PRODUCT_PUR_STATE_0 = 0;
	/** 条形码已导入 **/
	public static final int PRODUCT_PUR_STATE_1 = 1;
	/** 采购单已关联 **/
	public static final int PRODUCT_PUR_STATE_2 = 2;
	
	/** 客户自己取 **/
	public static final int PRODUCT_FETCH_TYPE_1 = 0;
	/** 邮寄 **/
	public static final int PRODUCT_FETCH_TYPE_2 = 1;
	

	/** 调拨单创建 **/
	public static final int TRANSFER_TYPE_0 = 0;
	/** 已审核（待生成出库单） **/
	public static final int TRANSFER_TYPE_1 = 1;
	/** 出库完成（已生成出库单） **/
	public static final int TRANSFER_TYPE_2 = 2;
	/** 出库（待生成入库单） **/
	public static final int TRANSFER_TYPE_3 = 3;
	/** 已生成入库单 **/
	public static final int TRANSFER_TYPE_4 = 4;
	/** 入库（完成） **/
	public static final int TRANSFER_TYPE_5 = 5;	
	
	/** 售后订单标记:0不是换货订单 **/
	public static final String CHANNEL_ORDER_RETURN_TYPE_0 = "0";	
	/** 售后订单标记:1返修发货,直接赔偿,客服补件**/
	public static final String CHANNEL_ORDER_RETURN_TYPE_1 = "1";	
	/** 售后订单标记:2售后调货**/
	public static final String CHANNEL_ORDER_RETURN_TYPE_2 = "2";	
	
	/** 退货状态0:未入库**/
	public static final String CHANNEL_ORDER_RETURN_STATE_0 = "0";	
	/** 退货状态1:已入库**/
	public static final String CHANNEL_ORDER_RETURN_STATE_1 = "1";	
	/** 退货状态2:已换货**/
	public static final String CHANNEL_ORDER_RETURN_STATE_2 = "2";
	/** 退货状态3:已完成**/
	public static final String CHANNEL_ORDER_RETURN_STATE_3 = "3";	
	/** 退货状态4:已生成入库单**/
	public static final String CHANNEL_ORDER_RETURN_STATE_4 = "4";	
	/** 退货状态5:已生成出库单**/
	public static final String CHANNEL_ORDER_RETURN_STATE_5 = "5";	
	
	/** 系统设置:默认京东物流状态为自取key,用与获取配置的value**/
	public static final String CHANNEL_ORDER_DEFAULT_PARAMETER_KEY = "1274";
	
	 /**
     *采购单重复
     */
    public static final String FAILREPEAT = "failRepeat";
    
    /**多渠道订单**/
    /**多渠道订单 订单渠道4.自存**/
    public static final String  CHANNEL_ORDER_TYPE = "3";
    
    /**订单状态 0：已提交**/
    public static final String ORDER_STATE = "0";
    
    /**发货状态 0：未发货**/
    public static final String  DELIFERY_STATE = "0";
    
    /**支付状态 0：未支付 **/
    public static final String PAY_STATE = "0";
    
    /**支付方式1货到付款**/
    public static final String PAY_TYPE="1";
    
    /**订单类型 1返还**/
    public static final String ORDER_TYPE="1";
    
    /**售后订单标记 0:不是换货订单***/
    public static final String RETURN_ORDER = "0";
    
    /**退货状态0:未入库***/
    public static final String RETURN_STATE = "0";
    
    
    
}
